<?php
class Comment extends AppModel {

    var $name = 'Comment';
	var $belongsTo = array (
	    'Blog' => array( 
	        'className' => 'Blog', 
			 'foreignKey'=>'blog_id',
			'dependent'=> true 
			)			
		);
	var $hasMany =array(
	    'Reply' => array(
		    'className' => 'Reply',
			'foreignKey'=>'comment_id',
			'dependent'=> true
			)
		);
	


}
?>